package com.freedom.sql.jdbc.pool.socket;

import java.net.Socket;
import java.nio.channels.SocketChannel;

public class MySocket {
	private Socket channel = null;
	private String physicalDB = null;
	private String charset = null;
	private boolean exception = false;// 默认业务没有异常
	private int autoCommit = 1;// MySQL默认是自动提交

	public MySocket(Socket _channel) {
		this.channel = _channel;
	}

	public Socket getChannel() {
		return channel;
	}

	public void setChannel(Socket channel) {
		this.channel = channel;
	}

	public int getAutoCommit() {
		return autoCommit;
	}

	public void setAutoCommit(int autoCommit) {
		this.autoCommit = autoCommit;
	}

	public boolean isException() {
		return exception;
	}

	public void setException(boolean exception) {
		this.exception = exception;
	}

	public String getPhysicalDB() {
		return physicalDB;
	}

	public void setPhysicalDB(String physicalDB) {
		this.physicalDB = physicalDB;
	}

	public String getCharset() {
		return charset;
	}

	public void setCharset(String charset) {
		this.charset = charset;
	}

}
